<script>
	import {mapMutations} from 'vuex'
	export default {
		onLaunch: function() {
			this.getSystemInfo()
		},
		onShow: function() {
		},
		onHide: function() {
		},
		methods:{
			...mapMutations(['system/setSystemInfo']),
			// 获取设备系统信息
			getSystemInfo(){
				uni.getSystemInfo({
					success:(res)=>{
						if(res.platform === 'ios'){
							res.barHeight = 88
						} else if(res.platform === 'android') {
							res.barHeight = 96
						}
						this['system/setSystemInfo'](res)
					}
				})
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
	page{
		height: 100%;
	}
</style>
